/*Panels variables*/
float    osd_vbat_A = 0;                 // Battery A voltage in milivolt
float    osd_curr_A = 0;                 // Battery A current
int8_t   osd_battery_remaining_A = 0;    // 0 to 100 <=> 0 to 1000
float climb_rate = 100;                 // DMD The cm/s we are moving up or down based on filtered data - Positive = UP


uint16_t channel7_value;                 //DMD activation OSD Tuning
uint16_t rc1_roll_value;                 //DMD change value OSD Tuning
uint16_t rc2_pitch_value;                //DMD change value OSD Tuning
uint16_t rc3_throttle_value;                //DMD change value OSD Tuning
uint16_t rc4_yaw_value;                  //DMD change value OSD Tuning
uint16_t rc6_ch6_value;                  //DMD change value OSD Tuning

uint16_t osd_mode = 0;                   // Navigation mode from RC AC2 = CH5, APM = CH8
uint8_t  osd_nav_mode = 0;               // Navigation mode from RC AC2 = CH5, APM = CH8

float    osd_lat = 0;                    // latidude
float    osd_lon = 0;                    // longitude
uint8_t  osd_satellites_visible = 0;     // number of satelites
uint8_t  osd_fix_type = 0;               // GPS lock 0-1=no fix, 2=2D, 3=3D

int8_t      osd_pitch = 0;                  // pitch form DCM
int8_t      osd_roll = 0;                   // roll form DCM
int8_t      osd_yaw = 0;                    // relative heading form DCM
float    osd_heading = 0;                // ground course heading from GPS
float    osd_alt = 0;                    // altitude above ground
float    osd_alt_msl = 0;                // DMD : Altitude above sea
float    osd_groundspeed = 0;            // ground speed
uint16_t osd_eph = 0;                    //DMD GPS HDOP horizontal dilution of position in cm (m*100)
uint16_t osd_throttle = 0;               // throttle
uint16_t temp = 245;                   // DMD Temperature in °C * 10

//MAVLink session control
uint8_t  isArmed = 0;   //DMD copter armed 1, or disarmed 0
uint8_t  apm_mav_type;
uint8_t  apm_mav_system; 
uint8_t  apm_mav_component;

float alt_Home_m=0;
int home_set=0;

